package com.lancoo.ccas52.service;

import com.lancoo.ccas52.entity.SubClass;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lancoo.ccas52.pojo.common.PageInfo;
import com.lancoo.ccas52.pojo.vo.ClassDto;
import com.lancoo.ccas52.pojo.vo.SubCourseVo;

import java.util.List;

/**
 * <p>
 * 拆班班级 服务类
 * </p>
 *
 * @author quin.song
 * @since 2023-10-30
 */
public interface SubClassService extends IService<SubClass> {

    /**
     * 添加分班行政班
     *
     * @param subClasses
     * @return
     */
    List<SubClass> addSubClass(List<SubClass> subClasses);

    /**
     * 删除分班行政班
     *
     * @param ids
     * @return
     */
    boolean removeSubClass(List<Long> ids);

    /**
     * 获取分班列表
     *
     * @param taskId
     * @param type
     * @param gradeId
     * @param keyword
     * @param currentPage
     * @param pageSize
     * @return
     */
    PageInfo<SubClass> getClassSub(Integer taskId, Integer type, String gradeId, String keyword, Integer currentPage, Integer pageSize);

    /**
     * 获取可选择拆班课程
     *
     * @param taskId
     * @return
     */
    List<SubCourseVo> getSubCourse(Integer taskId, String collegeId, Integer majorProp, String classId);

    /**
     * 获取未选择指定课程行政班
     *
     * @param taskId
     * @param keyWord
     * @param baseCourseId
     * @return
     */
    List<ClassDto> getSubClass(Integer taskId, String keyWord, String baseCourseId);

}
